home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 9 / FM Towns Free Software Collection 9.iso / t_os / shell / igo / gosource / mijudge.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-16  |  3.3 KB  |  153 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <winb.h>
  4. #include <te.h>
  5. #include <fntb.h>
  6. #include <gui.h>
  7.  
  8. extern int    judge_dialogId ;
  9. extern int    judge_buttonId[1] ;
  10. extern int    judge_end() ;
  11. extern int    judge_messageId[4] ;
  12.  
  13. #define ALIGN    4
  14. #define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)
  15.  
  16. /*    MMI_init 用データ    */
  17.  
  18. /*    ヘッダ    */
  19.  
  20. MMIINIT    initDataMIJUDGE = { "MmiInit",   8, 0 } ;
  21.  
  22. /* judge_dialogId */
  23.  
  24. static MMIPACKET d001 = {    &judge_dialogId,
  25.                             NULL,
  26.                             &MJ_DIALOGL40,
  27.                             OFFSET(DIALOGL40),
  28.                             MS_NONE
  29.                         } ;
  30. static DIALOGL40    d001d = {    MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
  31.                                1,  59, 178, 243, 8, 7, 8,
  32.                             MS_SRECTL40 | MS_FRAMEL40,
  33.                             NULL,   0,   0
  34.                         } ;
  35.  
  36. /* judge_buttonId[0] */
  37.  
  38. static MMIPACKET d002 = {    &judge_buttonId[0],
  39.                             &judge_dialogId,
  40.                             &MJ_DBUTTONL40,
  41.                             OFFSET(DBUTTONL40),
  42.                             MS_NONE
  43.                         } ;
  44. static DBUTTONL40    d002d = {    MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
  45.                               50, 205, 129, 230, 4,15, 8,
  46.                             MS_PANELL40 | MS_FRAMEL40,
  47.                             judge_end,
  48.                             0x0000
  49.                         } ;
  50.  
  51. /* NULL */
  52.  
  53. static MMIPACKET d003 = {    NULL,
  54.                             &judge_dialogId,
  55.                             &MJ_MSGL40,
  56.                             OFFSET(MSGL40),
  57.                             MS_NONE
  58.                         } ;
  59. static MSGL40    d003d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  60.                               10,  71, 169,  94, 8,15, 8,
  61.                             MS_NONEL40,
  62.                             "形勢判断",
  63.                                1,  12,  12,
  64.                             MS_NONEL40,
  65.                                0,   0
  66.                         } ;
  67.  
  68. /* NULL */
  69.  
  70. static MMIPACKET d004 = {    NULL,
  71.                             &judge_dialogId,
  72.                             &MJ_MSGL40,
  73.                             OFFSET(MSGL40),
  74.                             MS_NONE
  75.                         } ;
  76. static MSGL40    d004d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  77.                               51, 206, 125, 229, 8,15, 8,
  78.                             MS_NONEL40,
  79.                             "確認",
  80.                                1,  12,  12,
  81.                             MS_NONEL40,
  82.                                0,   0
  83.                         } ;
  84.  
  85. /* judge_messageId[0] */
  86.  
  87. static MMIPACKET d005 = {    &judge_messageId[0],
  88.                             &judge_dialogId,
  89.                             &MJ_MSGL40,
  90.                             OFFSET(MSGL40),
  91.                             MS_NONE
  92.                         } ;
  93. static MSGL40    d005d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  94.                               12, 101, 171, 121, 8,15, 8,
  95.                             MS_NONEL40,
  96.                             NULL,
  97.                                1,  12,  12,
  98.                             MS_NONEL40,
  99.                                0,   0
  100.                         } ;
  101.  
  102. /* judge_messageId[1] */
  103.  
  104. static MMIPACKET d006 = {    &judge_messageId[1],
  105.                             &judge_dialogId,
  106.                             &MJ_MSGL40,
  107.                             OFFSET(MSGL40),
  108.                             MS_NONE
  109.                         } ;
  110. static MSGL40    d006d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  111.                               12, 126, 171, 146, 8,15, 8,
  112.                             MS_NONEL40,
  113.                             NULL,
  114.                                1,  12,  12,
  115.                             MS_NONEL40,
  116.                                0,   0
  117.                         } ;
  118.  
  119. /* judge_messageId[2] */
  120.  
  121. static MMIPACKET d007 = {    &judge_messageId[2],
  122.                             &judge_dialogId,
  123.                             &MJ_MSGL40,
  124.                             OFFSET(MSGL40),
  125.                             MS_NONE
  126.                         } ;
  127. static MSGL40    d007d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  128.                               12, 151, 171, 171, 8,15, 8,
  129.                             MS_NONEL40,
  130.                             NULL,
  131.                                1,  12,  12,
  132.                             MS_NONEL40,
  133.                                0,   0
  134.                         } ;
  135.  
  136. /* judge_messageId[3] */
  137.  
  138. static MMIPACKET d008 = {    &judge_messageId[3],
  139.                             &judge_dialogId,
  140.                             &MJ_MSGL40,
  141.                             0,
  142.                             MS_NONE
  143.                         } ;
  144. static MSGL40    d008d =     {    MS_CENTERL40 | MS_DSPONLYL40,
  145.                               12, 180, 171, 200, 8,15, 8,
  146.                             MS_NONEL40,
  147.                             NULL,
  148.                                1,  12,  12,
  149.                             MS_NONEL40,
  150.                                0,   0
  151.                         } ;
  152.  
  153.